Skip to content

Feature/hw11 uart 2 - #11

Merged
alex-popkov merged 11 commits into
mainfrom
feature/hw11-uart-2
Aug 14, 2026
Merged

alex-popkov merged 11 commits into
mainfrom
feature/hw11-uart-2

Conversation

@alex-popkov

@alex-popkov alex-popkov commented Jun 29, 2026 •

Copy link
Copy Markdown
Owner
  • add classes to manage uart and gpio ports
  • add DroneController (drone_controller.hpp/.cpp): maps mission output to
    normalized CONTROL (accel + turnRate) sent over UART each tick
  • steer toward the predicted target instead of the firePoint
  • guidance = pursuit (Kp * deltaAngle) + line-of-sight-rate feed-forward
    (Kd * losRate, proportional navigation) to kill heading lag on maneuvering targets
  • couple throttle to heading error: hold attackSpeed when aligned, coast while turning
  • MissionProcessor: predict target position over ammoFlightTime for both aiming
    (aimPoint) and the drop decision (checkDrop) so a moving target is led correctly
  • expose aimPoint via MissionResult; wire DroneController into the main loop
  • read attack params in file config loader; minor simulation helper updates

…-packages - add libgpiod-dev and others, add it in cmakelists
…io controller (open, send start and drop signals)
…d accelPath and attack speed, need to clarify it
… targets

- add DroneController module: converts mission decisions into UART CONTROL
  commands (accel + turnRate)
- steer toward the predicted target instead of the collapsing firePoint,
  removing the atan2 singularity at the drop moment
- guidance = pursuit (Kp*deltaAngle) + LOS-rate feed-forward (Kd*losRate,
  proportional navigation) to kill heading lag against maneuvering targets
- couple throttle to heading error: hold attackSpeed when aligned, coast while turning
- MissionProcessor: predict target over ammoFlightTime for both aiming (aimPoint)
  and the drop check, so the bomb leads a moving target
- expose aimPoint via MissionResult and wire DroneController into the main loop
- remove dead state-machine code carried over from earlier homework
…nto feature/hw11-uart-2

# Conflicts:
#	drone_simulation/src/main.cpp
#	drone_simulation/src/mission_processor.cpp
#	drone_simulation/src/simulation.cpp
@alex-popkov
alex-popkov merged commit 05cc1f4 into main Aug 14, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant